import request from '@/utils/request'

// 查询电影视频关联列表
export function listMovieVideo(query) {
  return request({
    url: '/movie/videoRelation/list',
    method: 'get',
    params: query
  })
}

// 查询电影视频关联详细
export function getMovieVideo(movieVideoId) {
  return request({
    url: '/movie/videoRelation/' + movieVideoId,
    method: 'get'
  })
}

// 新增电影视频关联
export function addMovieVideo(data) {
  return request({
    url: '/movie/videoRelation',
    method: 'post',
    data: data
  })
}

// 修改电影视频关联
export function updateMovieVideo(data) {
  return request({
    url: '/movie/videoRelation',
    method: 'put',
    data: data
  })
}

// 删除电影视频关联
export function delMovieVideo(movieVideoId) {
  return request({
    url: '/movie/videoRelation/' + movieVideoId,
    method: 'delete'
  })
}
